<template>
	<view class="wrapper">
		<view class="title">
			<text class="icon">*</text>
			{{title}}
		</view>
		<slot>
			<view class="input-box">
				<textarea placeholder="请输入" placeholder-class="hint" />
			</view>
		</slot>
	</view>
</template>

<script>
	export default {
		props: {
			title: {
				type: String,
				default: ''
			}
		}
	}
</script>

<style scoped lang="scss">
	.wrapper {
		padding: 0 15rpx;
		margin-bottom: 24rpx;

		.title {
			font-size: 28rpx;
			line-height: 40rpx;
			color: #333333;
			margin-bottom: 10rpx;

			.icon {
				color: #E60012;
			}
		}

		.input-box {
			height: 176rpx;
			background: #F8F9FE;
			border-radius: 4rpx;
			padding: 16rpx;
			box-sizing: border-box;
			
			textarea {
				height: 100%;
				width: 100%;
			}
		}

		.hint {
			font-size: 28px;
			color: #999999;
		}
	}
</style>
